<!DOCTYPE html>
<html>
<head>
	<title>iframe</title>
	<style type="text/css">
	
	html,
	body {
		width: 100%;
		height: 100%;
		overflow: hidden;
	}	
	#baidu {
		width: 100%;
		height: 100%;
		border: none;
	}

	</style>
</head>
<body>
<iframe src="https://www.baidu.com/" id="baidu"></iframe>
</body>
<script type="text/javascript">
	
var baidu = document.getElementById('baidu');
console.log(baidu);

</script>
</html>